FROM registry.cn-zhangjiakou.aliyuncs.com/dvadmin-pro/node12-base-web:latest
WORKDIR /opt/
COPY . .
RUN npm install --registry=https://registry.npm.taobao.org \
    && npm run build:prod

FROM nginx:alpine
COPY --from=0 /opt/dist /usr/share/nginx/html
